<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <c:if test="${! empty same_messages}">
        Same messages have been found.<p>
<div class="list">
  <table>
  <tr>
    <th>ID</th>
    <th>No.</th>
    <th>S</th>
    <c:forEach items="${daschemes}" var="dascheme">
        <th><c:out value="${dascheme.scheme}"/></th>
    </c:forEach>
    <th></th>
    </tr>   
    <c:forEach items="${same_messages}" var="sm">
    <tr>
         <td><c:out value="${sm.messageId}" /></td> 
    <td><c:out value="${sm.sequence}" /></td>
    <td>
      <c:if test="${sm.speaker == 1}"><font style="color: red">L</font></c:if>
      <c:if test="${sm.speaker == 2}"><font style="color: blue">U</font></c:if>
    </td>
    <td><c:out value="${sm.time}" /></td> 
        <c:forEach items="${daschemes}" var="dascheme">
        <td>
          <c:forEach items="${sm.dialogueActLabels}" var="dalabel">
            <c:if test="${dalabel.dialogueActDimension.dialogueActScheme.dialogueActSchemeId == dascheme.dialogueActSchemeId}">
              <c:out value="${dalabel.dialogueActDimension.dimension}"/>/<c:out value="${dalabel.label}"/>
              <br>
              </c:if>            
          </c:forEach>
          <br/>          
        </td>     
      </c:forEach>
        <td>
          <a href='annotatemessage.html?messageId=<c:out value="${message.messageId}"/>&copyMessageId=<c:out value="${sm.messageId}"/>'>copy</a>
    </td>   
  </tr>
  </c:forEach>
  </table></div>

           </c:if>
